﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sealight.Core.Domain
{
   public class SpecificationAttributeOptionEntity:BaseEntity
    {
        /// <summary>
        /// Gets or sets the specification attribute option identifier
        /// </summary>
        public virtual Guid SpecificationAttributeOptionID { get; set; }
        /// <summary>
        /// Gets or sets the specification attribute identifier
        /// </summary>
        public virtual SpecificationAttributeEntity SpecificationAttribute { get; set; }
        /// <summary>
        /// Gets or sets the name
        /// </summary>
        public virtual string Name { get; set; }
        /// <summary>
        /// Gets or sets the display order
        /// </summary>
        public virtual int DisplayOrder { get; set; }
        public virtual Sealight.Core.DataAdapter.specification_attribute_option ToDataAdapter()
        {
            return new DataAdapter.specification_attribute_option {id=this.SpecificationAttributeOptionID,display_order=this.DisplayOrder, name=this.Name, 
            specification_attribute = this.SpecificationAttribute.ToDataAdapter()};
        }
    }
}
